package com.ipet.web.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.ipet.web.pojo.User;
@FeignClient("ipet-sso")
public interface UserService {
	//用户的注册
	@RequestMapping(value = "/user/register", method = RequestMethod.POST)
	String saveUser(@RequestBody User user);
	//根据用户名和密码进行查询
	@RequestMapping(value = "/user/login", method = RequestMethod.POST)
	String findUserByUP(@RequestParam ("username") String username, @RequestParam ("password") String password);
	
	
	

}
